﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.SessionState;

namespace RC1.admin
{
    public partial class admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["user_id"] == null)
            {
                Response.Redirect("../login.aspx");
            }
            if (!Session["user_level"].Equals("2"))
            {
                Response.Redirect("../login.aspx");
            }
            populateLoggedInLabel();
        }

        private void populateLoggedInLabel()
        {
            Label1.Text = "<p>Innritaður sum admin<p>";
        }
    }
}